package org.bing.engine.common.message;

import java.net.SocketException;

public class Main {

    public static void main(String[] args) throws SocketException {
        RouterImpl router = new RouterImpl();
        router.init();
        Message msg = new Message();
        msg.setId("id");
        msg.setHeader("header");
        msg.setName("dynamic.demo");
        msg.setBody("body");
        Object obj = router.route(msg);
        System.out.println(obj);
    }
}
